Fix memory bug when there's a lot of user's data for MapReduce. A collection is now used as output