This is more efficient to getAll and loadAll the groups just once for all groups instead of once per group. This is true mostly because we would only need to open the repository just once this way. Places in the code that could utilize the new methods were updated. Change-Id: I43601cc2c574ff195d93867c0571a33c1a76cd57