Reduce garbage during cursor iteration.