The current filters have a lot of if checks. But when we look closely we see that most events can only match one filter in a file and not many. So after the first match we can skip testing for more hits. This skipping can be achieved by changing if into else if.
So check all filter files and replace if with else if where appropriate.