save and restore gamma_index for crengine