Made cache refreshing asynchronous