Zen and the art of statefulness