How to Improve Memory Usage When Using EDMs