cleaned the caching mechanism and allow to select pickle or s_pickle