small optimization for next() queries in temporal index.