switch from cache bool to cache key string