This works as long as the cocoon is perfectly insulated. But it isn't, as elections show. The political process basically cuts through the cocoon like a predatory wasp-- assuming there is at least one candidate or law that is incompatible with insulated beliefs. And then all that saved energy is wasted on moral warfare against the invaders.
Cocoons are always bad in a non-homogeneous society.