Fixed CACHE_TIME to be safer: prevent overflows from adding maxint to time.

Caching for the lesser of (100 years) or (5 years less than the max int minus the current time).