Change the cache expiration policy to reduce GC

The 'expireAfterWrite' expiration policy is causing excessive GC during
high load. Since we're going to be seeing the same things over and over
again, it is better to expire things from the cache when we stop seeing
it. This will reduce the amount of GC.