Minimization of fatigue in ferroelectric films