You're referring to single continuous fiber optic cables on land. Long undersea cables incorporate powered repeaters. Those can't be upgraded in situ with improved technology.
would the repeaters need to be replaced? if you are compressing the data differently or sending it faster or whatever, I'm not sure the repeaters care, they are just amplifying the signal, not decoding it and resending it.