Add data sharing between middlewares