Do you know what you are worth? That is do you know what the market is willing to pay to secure your services?
And do you know what steps you might take to increase your worth?
Rather than consume brain power fretting about job security and scheming how to side step the boot, why not focus on enhancing your economic worth.
As long as your worth commands a return that meets your financial expectations and your worth is based on objective analysis, then you should have no trouble remaining employed.
If an honest appraisal of your worth suggests you are currently overpaid then be prepared to be 'right-paid' or to invest in your own development.
Deadwood has nowhere to float in the digital economy.