Millennial timescale carbon cycle and climate change in an efficient Earth system model