I seem to remember while reading, from what I believe was the Republic, that Plato saw what could be interpreted a utilitarian role for Religion in society.
Am I misremembering? Not asking what he believed or if he believed in religion but if he saw a role of religion.