Improve check for whether we should warm up the cache or not