Filter faster

Puts things into compressions to be much faster. A few other minor speed changes lead this to be more than 60% faster than the original implementation (but only when using Oren's new changes to Expressions)

Please review the code, as this is pretty essential block that is used everywhere.