Optimize checking of required binaries