Index-persistence switched from gob to a hand-coded solution.

Change-Id: Ib4ec42535bd08df16d34d4774bb638e35c5a1841