Call validateTeam only once for a valid team
If the result of a validation for a format is positive, it will be saved to avoid the repetition of the task for the next battle.
This optimization is based on the assumption that the majority of the userbase battles in a single format and with a single team.