performance improvements when saving large learner group structures

see RM ticket 3088.