How do I change the address of the cache server at unity startup before importing the asset?

My purpose is to balance the load of the accelerator by selecting an idle accelerator before importing the asset.
I have tried InitializeOnLoad, and although it can change the address of the cache server successfully, it does not take effect until the asset is imported.