Sink filter writes given Ids to a file