Improved speed of cache refresh check