Tough situation. This has been going on for a while at a lot of different jobs; My dad is an engineer and about 15 years ago (at age 40ish), the plant he worked at needed to make cuts; he and several of his friends were told they should probably take the severance that was offered and most of them did, but he'd been there 10 years or so and had much more real world experience than the 25 year old they hired to replace him, but it was a bottom line issue. These guys were approaching some better 'vesting' rights and the company decided to look at bottom line rather than quality of work/ knowledge. Thankfully it worked out for him, so hope the same happens with you should they decide to let you go.