getCachedKeys method added