Set custom Primitve Data for mesh with multiple materials?

Hello,

my mesh has several materials because they are assigned to vertices. Is it also possible to use Set Custom Primitive Data for a specific material of a mesh?

Example i want to change the primitve data on material element 2:
image

but i need to combine this: