1. A method for optimizing leaf comparisons from a tree search of data stored in external memory of an embedded processing system, the method comprising: providing a control structure for leaf data comparisons as a control vector and a match key; and utilizing the control vector to direct types of comparison tests performed with the match key.