Once the current period starts, continuing to repeatedly collect staked tokens data for the current period is wasteful since that information won't change during the current period - the stakers have already committed to the current period during the previous period.
Once the current period starts, continuing to repeatedly collect staked tokens data for the current period is wasteful since that information won't change during the current period - the stakers have already committed to the current period during the previous period.
Opportunity for optimization here.