GUI RAM usage under Windows

I am working on Windows 10 with 32GB of RAM. I am currently using Melodyne on a bit longer track and it is not very memory friendly.

It seems that whenever the Ardour usage goes over approx. 1GB of RAM, GUI starts some clean-up process and it stops responding for about 10 seconds, which is very annoying. Then the RAM usage goes to around 500MB and the whole thing repeats after a couple of minutes. Playback is typically unaffected, it continues even with frozen GUI.

Is there anything I can do, such as increase the amount of memory when the clean up is triggered (I am pretty happy to give Ardour 10GB if that helps to clear up the issue).