Filter pipeline optimization