why not just use GASS to generate your galley duplicates? And why do you go back and edit pages?
If you were to use GASS, you could simply remove any TGP you want from the database, or add any TGP
It really a nice program
here's the link without a ref code(I do not resell this thing, I just use it and like it)
http://www.darksoftcomputers.com/gass/