Reduce the memory requirements

Reduce the memory requirements to avoid "Out of memory" errors.