I don't believe there is an easy fix though. The government will prioritize retention because it promotes institutional stability while at the same time offering low pay (and not just low pay but often a complete lack of flexibility regarding pay) because the electorate demands it.
Which means that the truly good people are basically quirky people with strong work ethic/believe in the mission that happened to join the organization for some reason.