Simplify Object.keys() caching