How do you optimize your code when working with exceptionally large datasets that exceed system memory?