Allow multiple keys to added or removed at the same time

These changes allow multiple keys to be removed or added at the same time.  This optimization was done as part of the teams user story where multiple users (1000 users was used as bench mark) are added to an application as a team.