Good for you. You’d still have all that and even more leverage with a union. And so would all your fellow SEs instead of only you.
> It would be extremely costly to replace me because of the critical role I have on a highly profitable product.
> If circumstances changed such that it made sense to lay me off
Companies don't always do things that make sense.
Realistically, if I were laid off today I'd likely land a better paying job than this one. I choose to stay because I like my boss, my work, and my coworkers.
If circumstances changed such that it made sense to lay me off then I should be laid off. Why should anyone be obligated to pay my salary if I'm not offering commensurate value?