Optimize the way we filter out categories when used by the newznab api #2037