Attempt to properly manage the cache.