What you need to store are not factor data, but the energy tables. Please use fg->evaluate_energies() to get them.