Trying to reduce memory consumption when using LOO & EE.