Do you mind sharing what region you're in? You may have found it was easy to significantly increase your compensation because you were significantly underpaid, instead of just because you were frequently changing jobs.
I think in the past 5 years there's been a ton of realization from non SF/NYC/VC-tech companies in the fact that they are competing from the same pool of talent and thus have to offer competitive salaries on a national basis, not just competitive for their area/city. There is still a ton of progress to be made in this regard, but it is changing.
for example, a hypothetical newly graduated programmer with some skills and experience should be able to land a starting position for at least ~$80k+. companies that would have previously been trying to pay ~$40k in their area are now realizing that by offering a competitive dollar amount, the actual cost of living makes their offer the most compelling one. Whereas before, they'd offer the $40k and say, well, our offer is lower because it's cheaper to live here. The right attitude is matching the ballpark competition in dollar amounts, and saying, you should accept our offer because your money goes further here.
Hmm, a lot of young people have the mentality that they'll learn more and go farther in their careers if they go to SF/SV to start, even if their adjusted salary is lower. I can't say whether they're right for sure, but it sounds right to me. I think my career has "suffered" for never having lived there. (I'm still doing just fine.)
midwest. My starting pay was only a couple thousand below my my university's CS program's average (wasn't the strongest student coming out), but it was within range of glassdoor reviews. I stayed at for 2.5 years at each role.