Update group service to use stack memory