The best path is always save up enough for at least 6 months of runway if you get laid off, at a bare minimum.