How do I use overlay materials on meshes with multiple materials?

If I’m using overlay materials, and there are multiple materials in one mesh, all materials are copied and used.
Can I use overlay material only for the material I want?