The profiler was showing that `typ()` was generating a string (and an allocation) on every cursor search. This should help speed up searches.