Sharing intermediate state