Fixed the memory issue due to the bigger docMatrix, changed the execution flow to async.series.