How to save memory in AMPLE