Further improve performance of IsConfirmed.
replace setAlreadyDone with setAlreadyQueued