Optimise coinbase check logic by using actual script bytes everywhere possible