Option to disable middleware hooks