Added optimiaztion- caching of polling metrics.