Static Switch node with multiple inputs/outputs

Hello! First time on the forums, so I hope my topic is in the correct Category :sweat_smile:

Well, I am developing a shader for a game project (UE 4.25) I’m working on which adds a texture of cracks on top of the enemies’ textures so it can be modified each time an enemy spawns. For this I created a material function which outputs the modified diffuse, AO, roughness, metallic and normal (each one in a single output) and then I connect them to the material.

However the cracks will not be used in every enemy, so I’d need to enable/disable this material function with a switch so it is not calculated if it is not necessary, but as there are multiple outputs, I would have to use one Static Switch parameter for each one of them (which is a bit uncomfortable to use in the material instances). In order to save some Static Switches I could append the masks into a single RGBA texture but I’d have to split them again later and I am not sure if appending and splitting is expensive or cheap for the engine.

So, my question is: is there is any efficient way to do this? Like a single Static Switch Parameter (only true/false) with multiple inputs and outputs.

Thank you!