Enable Instancing with rigidbody mesh

Hello,

I’m currently trying to optimize my game at the maximum. My problem is that I want to display 5000 to 10000 cube that have a rigidbody and the same material.
I tried to enable the GPUInstance on the material but I have the error on my frame debugger saying that the Object Materials are different.
I’m thinking maybe the batching is not possible when there is force and rigidbody on my mesh ?

Thank you,

OK I think I found something to help me. Because I need to change the color of each my mesh I cannot use GPUInstancing.
So I find materialpropertyblocks is usefull for me.