[#671] Check middleware compatibility asynchronously