Reduce the memory used