shader building is an absolute nightmare

For global parameters you should use Material parameter collections. This way you can save lot of per object blueprint updating. Using Material Parameter Collections in Unreal Engine | Unreal Engine 5.3 Documentation