Cache the list of children, which is the most common use case and remove the unsued function/multi filter cases
Cache the isCapture / isNonCapture settings for all of the tokens.
Optimize the isAnyOf function.