I actually solved it by using PerInstanceRandom node in the master material of the material layer and connect it to the CustomizedUV output. I then use the TexCoord to access this data inside the material layer itself.