RAM is expensive—here’s how to use it wisely.