Tweak caching functionality so we aren't deleting and recreating the cache every time.