I have some few starforge stones permanent ones that I'd rather not use rn but use the temporary instead

I have 2 starforge stones and three temporary ones enough to upgrade dravion to level 3 , if I buy 3 extra temporary ones when I upgrade will I remain with 3 temporary or 3 permanent stones ?

Does the game prioritize using the temporary ones first ?