I would guess it is a major consideration.
One idea that could be tried in order to retain pilots might be a form of loyalty scheme; say, enhanced salary and pension for long service. Let's say the normal increments for a Captain go to year 20 then stop, how about having another set of increments from year 15 to 25 at a higher rate. That way you would be better paid for longer and your pension would be enhanced. To qualify you would have to have done, let's say, 15 years as a captain without any serious incidents or accidents (pilot induced) and perhaps have a minimum number of hours (factored for those in executive or trainning roles).
Those on the new scale could be called Senior Captains..........
No, that would never work!
------------------
Another day in paradise