Re #6169. Try getting the initial memory in init instead of execute.

Some tests load data in their __init__ so I can't clear things out
in execute.
Merge branch 'feature/6169_performance_monitoring' into develop