Improve Group.get_hosts() performance

With my test case (a trivial playbook with an inventory with hundred of groups and about a thousand hosts)
I see execution time dropping from ~3m down to ~20s.