Make XML duplicate changing faster