Currently this isn't exposed, and it would be very beneficial to performance when you have a scene that has many different materials that have the same shader and you want to do some uniform changes to all of them.