optimizing clearing the cache by doing a single lookup rather than a loop because there will only ever be one key in the object