Reduce memory fragmentation by clearing memory after every workflow.