improve speed of range queries by removing a log statement