Implemented caching on the Value *key(int) method in mapvalue to improve performance and reduce memory usage