v.24.1Performance Improvement

Improve performance of multiIf function for Nullable types

Improve the multiIf function performance when the type is Nullable. #57745 (KevinyhZou).