+ Optimizations and improvements to keyMap class