Improved blocks ID filtering