performance improvements with getLastTeam