I've taken to learning more about both languages so I can work at the banks that use these. Job stability is #1 for me and if it's at a "dead end" job in tech, at this point I don't see a risk as long as my relevant skills are kept reasonably up to date on the side job/home lab.