Optimize calling of og_get_all_group_bundle and og_get_all_group_content_bundle

#6429