Made the cache refreshes threaded.