Don't spend your time getting better at your job. I'm not saying you don't need to be good, I'm saying the time is better spent doing something else.
That other thing is networking.
Connect with recruiters on LinkedIn and hit them up for referrals to jobs. I have a quite long list of recruiters in the quant trading niche who contact me from time to time. When they ping me I find out who is hiring and what they're after, and if it's not for me I might know someone for the role. When it's my turn to look, I reach out and there's a firehose of interviews.
With a little bit of effort you end up feeling quite comfortable that if you need a new role, there will be one. It contributes substantially to my tranquility.