Use Compare Filters, Not Condition Filters
If you have to filter the data after it's been retrieved, use Compare Filter elements, notCondition Filter elements. Compare filters are implemented as a native part of the Logi Engine whereas Condition Filters execute script and that takes a lot longer to run. It's not unusual to see performance improvements of 25-50% when Condition Filter elements are replaced with Compare Filter elements.