........S. [ZBX-8414] restored range check when caching values by time to avoid checking database if the required range was already requested before