Prevent middleware reload when auto_reload enabled