Implemented caching of metric data