measure memory increase around middleware call