This is somewhat what Isaac Asimov wrote in the foundation series.
Se: https://asimov.fandom.com/wiki/Scientism
This is the extract in question from the link above:
"In addition to the technician-priests (an atomic priesthood that controls the technology of nuclear power) from Terminus who travel to the worlds of the Four Kingdoms, the church also recruits priests from among the native populations of those worlds.
They travel to a Temple School in Terminus City, where they are taught the operation (though not the theoretical underpinnings) of the Foundation's technology, along with more traditional religious instruction in church dogma, theology and ethics.
Any novitiate priest at the Temple School who is bright enough to see through the mystical surface to the scientific principles underneath remains on Terminus to become a research student. The rest return to the Four Kingdoms to form part of the priesthood." (End quote)
Basically, disguise the knowledge within the rituals but make the rituals good enough so that the knowledge can be transmitted to the future generations.