With the method I suggested, it’s possible to have 13 different separatable channels in a single mask (by combining colours). There are not many cases where you’ll need more than that. Sure, it doesn’t allow you to pull out very specific colours, but it’s cheaper and produces nicer results. The real answer to this is really “don’t use shades like (0,0,100) in your mask”.