Elevating ops to global scope optimization

Seems to improve performance by about 10-20% across unindexed and
indexed queries