Optimising Learning: Memory Management Explored