Job security is an illusion.
Learning a higher-paying skill while working at your current job is one of the smartest things you can do.
Changing jobs every 2-3 years is one of the best ways to give yourself a raise and increase your pay regularly.
Never feel guilty about leaving a job for a better opportunity.