Output filters are executed on a per-file basis as it's necessary to supply the file size to the "other side".