Use pickle to store the results into the index file