filters: Handle all filter rules in PHP

Turns out that the query to fetch a "short" list from MySQL is slower than just running all the filter rules in PHP