A patch based procedure for stress recovery in elastoplasticity