ID map and RGB mask for layered material multiple surfaces

Thanks, i’m pretty proud of my quick little shader too haha

I wonder what is best, using something like this or the built in layered shader.
Even with just 2-3 layers in the UE layered shader, the shader optimization view shows it as red while mine is still in the green as of now.