Many people live in company provided housing and share villas with other people. Legally, villas can only be shared among the same sex. To an outsider, two guys living in a villa wouldn't look out of the ordinary. But, I guess that wouldn't work because you don't want to be worried.

Given that, I would say that it would be all but impossible to live here as a married gay man if you were opposed to keeping it a complete secret the entire time. No visa would be given though...and it's extremely expensive if he were to overstay a tourist visa, so I wouldn't try that route if I were you.