Why don't you start your own company, make a lot of money and hire people with 10x salary? Who's stoping you? Show us how you pay 1M to each of your SWE.
It doesnt have to be 10x. Working in "Mid Tech" should at least guarantee you a raise that beats inflation. Sadly, it seems the only way to guarantee a raise that is proportional to the companies increased productivity is to shop offers around.
Either you're too bad (at best average; same thing I guess?) or the company management is shit. Either way you should not be in that company. So what's the problem?