There is a wait at the beginning of this function, which already ensures that the ShardingState has been initialized.