Trying to understand what you are reporting exactly... IIUC you are saying that we should check #dropTemporaryTableAfterUse to decide whether to create a table? Not following that.
Also, all of this changed significantly since 5.0 (see HHH-9724).