Add bulk check for duplicate xml encoding, and a remove for the same