cleanup for the cache