Only upload uniforms when necessary