Cache team memberships

This was accidentally removed in 8023a53.
Merge pull request #42 from fphilipe/cache-team-memberships

Cache team memberships