update keys cache method