Optimize tail of rand when no more Datum_Pids are needed