Removed redundant temp_cache var, handled by cached_keys instead.