I taught HS juniors & seniors for a short time, before my late partner suddenly became ill and died. My epileptic seizures increased a great deal, possibly stress related, and I decided to abandon my teaching career.
But for a brief period I faced your problem. I never came out to my students, nor did any ever ask me. I felt that my sexuality, straight or gay, wasn't relevant to my job in the classroom.
And quite frankly, in that conservative community the parents would have wanted to lynch me, encouraged by their church leaders to believe that all gays are child molesters. You can't control this issue in many cases, so that you only serve to destroy yourself by coming out. In many parts of the US the law is not on your side, but against you.
But I understand your concern for those students struggling with their own orientation. A few years before this I had been taking some undergraduate college courses that I needed to teach HS. One day I was running late for class and didn't pay attention to the shirt I grabbed as I left my apartment.
After class a young female student came up to me in the hallway. "Sir, can I please ask you a question?" At my age even fellow college students call you "sir."
Very shy, she struggled to continue. "I hope I don't insult you, but... are you gay?" I was a little startled, but answered yes, wondering what prompted that question.
"You're wearing a shirt that says 'Gay Men's Chorus of Houston.'" I looked down at my shirt and sure enough I was! She went on to tell me she was lesbian, and rather intimidated & lonely on this small campus, which had no GLBT student groups. She thanked me for being so "brave" to advertise my sexuality, which made her feel a little better.
I put her in touch with a faculty member who headed an unofficial GLBT support group for students. And from that day forward I wore gay pride crap to classes on a fairly regular basis. Not to flaunt my orientation, but as a signal to other gay students to not be afraid, that they were not alone.
As noted above, I doubt you could do that yourself as a teacher, without getting fired or running into severe criticism. But you might look for opportunities to promote a GLBT student group, in alliance with other liberal teachers there. Quite honestly, I'm more concerned about the welfare of the struggling gay students than I am about you, though accommodating both would be ideal.
I presume you're a big boy, and tough, while these students are just kids starting out who are getting all the wrong signals & messages about their orientation. It wouldn't surprise me that as a teacher, you would ultimately derive greater satisfaction from helping them more than helping yourself, if one is forced to prioritize.