This is wrong. It will break if you have several assets being processed as processing an asset changes the state of the filter and so will impact next assets