small opitmizations with uniform locations for deferred pass