How long can sperm stay frozen/cryopreserved for and still remain viable?

A major consideration is whether the sperm were compromised prior [...]