Mining Copper: Optimize memory

Optimize memory