improve predicate lookup performance from .7 ms to .1 ms

Fixes #309