Using less memory via yield