Your reasoning is really absurd. You're saying homosexuality should have remained criminalized... and if that had been so people would not have been having gay sex.. and a rising epidemic would have been entirely avoided. Furthermore, you believe the gay population who died from it regretted being gay on their deathbeds? You don't see any logical leaps in any of that?
Do you also think we should make a policy banning sex because it will be "good policy"? Just use in vitro fertilization to procreate. It will certainly eliminate STDs.