prevent creation of duplicate cache in useCache method