Could you link your source for the 350k figure? Thank you!
San Francisco is 124k USD (https://www.glassdoor.com/Salaries/san-francisco-software-en...)
So, it's not triple, but it's more than double.
Also, if you're going from a junior/midlevel role in CA to a senior position in the US, you could pretty easily triple your salary.