So, after 5 years, they can deduct the entire salary.. this just seems like an incentive to promote long-term employment. Doesn't seem like a bad incentive.
No, this is not how it works. They can still deduct the entire first year of salary even if the person is let go, as that salary is considered a capital expense. There is no incentive to keep the person on payroll because of this policy.