tweak: made the cache retrieval logic clearer