Optimized dataFlowToRegex to be about twice as fast.