CRM-9493 - improve performance on group contact cache build (fixed & re-...

...submitted)