Export with and without masks

How might I export my font with and without masks so that one master of the font has masks cut into the glyphs (to make a stencil font) and a different master eliminates the masks entirely to make a normal non-stenciled font?

You could write a little filter plug-in that removes masks and add it as a custom parameter to the unmasked exports.