Improvement: revert searchind indices to take advantage of memory hierarchy.
Move most frequent conditional options as first choice to help branch prediction