LDEV-3542: First draft of performance improvements for mass creation. Now checks just the user ids, in the current list of users rather than building all the user objects and only does the check if the number of potential users is different to the number of current users. Also add index to stop users being duplicated in the session.