making sure the cache size per RRA does not exceed rrd.cacheSize, getting rrd_first falues in getVal to prevent getting rows from a diffrent RRA if the requested timestamp is earlier than the first for that RRA