to make it faster to implement indexed queries where some keys are common and some are rare. Patch by Jeff Janes