Previously it would take 10 seconds to run this input, now it takes 10ms: clusterfuzz-testcase-blockfilter-5022838196142080.log
The fix is moving the MatchAny out of the hot loop.
Also, to avoid unlimited runtime, cap the hot loop at 30k iterations.