implemented a cache map for faster cache clearing