Prime restore

http://manage.dimagi.com/default.asp?145225

@czue 
It seems safer to leave it the way you have it; depending on how terribly slow it is for TDH we can decide to optimize later?