Memory optimizations. Fix y to be calculated on the fly.