Optimization and fix WriteData DESFire