Avoid reading the cached keys twice