Actually this is not completely true. One thing everyone knows that if you can get more and can loose depends on the future of the project. If your project in which you are working is deployed then you will get advantage and if it fails then you would in trouble. For the company only business matters, engineers are just resources for them, it is known term "head count".
For the management, everything is business target and money because they have to pay you.
If you are really intelligent then you would be able to find the way to get another opportunity outside based on your skill sets like OS, algorithm and programming. For most of good companies like Microsoft, Amazon technology does not matter only the thing matter is analytical and programming skills.
While there are few other companies which always hire professionals those skill set matches with their requirements. This is true for services based company.
In essence, if you are very good in algorithm and programming no need to worry about the future due to working in proprietary project.
If you are average/above average I will suggest to work in the technology in which many companies work. It will help you change the job.