Only save models if they have actually changed