Hi, KJC_Creates; the idea with the material overwrite to create mattes, using only Emission as output, which should be fast (GI disabled).

I'm unaware of an option other than creating a specific setup allowing mixed materials on a single object.

Let me ask differently, what is the target? Could a position pass perhaps help?

All the best