Improve implementation of filter_sideproducts() in Processor