dump pickle instead to deal with functions. Reduce search space.