Calculate y only once per y increase