store some intermediate rdds, and try to trim in memory size of dictionary