Parallel code kills the memory