Don't know about under the NEC, but that's the way we do it here: Derate according to the highest temperature the cable passes through.