Moved hash calculation from request to response