Avoid setting up the state if there are no matches.
Improve the code generated for early fast forwarding.