In one embodiment, a state variable or other data structure maintains the lookup path and/or a masked version of the lookup path so the entire previous lookup path is not masked each time. [0055] In process block 238, a comparison operation is performed to determine whether the node value matches (e.g., equals) the lookup path (e.g., the direct or masked lookup path depending on the data structure