IP: Drop some index loops in BoxFilter for an iterator loop