Add option to disable memory spool