Added in-memory cache for fast/single row metrics. Keeps only latest data