A fairly ugly stab at periodic flushing during index process