Optimize filter writer