Optimize

Reduces allocations by 25% in one cursor-select benchmark.

@bernerdschaefer — a quick scan, if you don't mind?