Memory Parallel support correction

For each function using parallel calculation, the RAM will be cleaned