[performance] Fix performance of simple range index lookup: use context, same approach as for field lookup.