You aren't "investing" in employees by paying them a salary. Employees will get a 10-15% payrise by switching after 2 years. Give them that payrise and communicate why. Even if they leave anyway, you only pay them while they stay so you don't lose much.