finish caching