Great that you found a solution!
Just for completeness:
- Couldn't you have used sprite 6 for the starfield and sprites 0-5 for the mask,
and then set up bplcon2 just once to 0x1b?
- Another option might be to put the mask into the static playfield and then change the playfield priority on every line?