Improve the performance of the double-add check for batches by using the Container field instead of doing a search of the batch for existing instances.