implemented a getVal function that uses a per-package cache to store read-ahead RRD values