As d-mb and as much as it makes NO sense whatsoever...
The key to keeping your job is to be good at it but not TOO good. The experts or senior level guys have the most visibility by managers, directors, etc... and get paid a lot but, they for some reason are usually more likely to be let go than a mediocre but good employee.
Stay right in the middle. Do a good job, do your job. be civil with everyone and don't make enemies or whatever. Be easy to work with, do favors here and there. Get in good with a handful of managers and that's all you gotta do to stay out of the "radar."
Those who get laid off are almost always senior folks, those who've been there for 15+ years, are older than 50, and then the bottom of the barrel people who contribute nothing at all.