Static Switching Between Masked and Opaque

You can create a material instance and set the shader mode override to masked there.
just make 1 material with the mask node connected, but with the shader mode set to opaque, then make an instance of that material and set its material type override to masked.