Minimize memory use