Easy solution: store entrails of the last king/priest (whichever comes first) in liquid nitrogen and thaw them before use.
I love how this is modded +5 insightful.
"The algorithm to do that is extremely nasty. You might want to mug someone with it." -- M. Devine, Computer Science 340