Minor optimizations in `RemoteCallOp::ComputeAsync()`.
Minor optimizations in `RemoteCallOp::ComputeAsync()`.

This change avoids constructing `InstantiateOptions` unless we actually need to instantiate the function (on its first use), and rearranges things to avoid copying so many strings and structures.

PiperOrigin-RevId: 296565724
Change-Id: Ieaa5934f0debc7fe2c722e823185d5f958993cc3

frreiss/tensorflow-fred,aam-at/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,aam-at/tensorflow,sarvex/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,petewarden/tensorflow,petewarden/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,davidzchen/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,yongtang/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,renyi533/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,renyi533/tensorflow,xzturn/tensorflow,petewarden/tensorflow,annarev/tensorflow,gunan/tensorflow,xzturn/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,frreiss/tensorflow-fred,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,xzturn/tensorflow,petewarden/tensorflow,karllessard/tensorflow,karllessard/tensorflow,sarvex/tensorflow,sarvex/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,sarvex/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,freedomtan/tensorflow,sarvex/tensorflow,Intel-Corporation/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,gunan/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,karllessard/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xzturn/tensorflow,Intel-tensorflow/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,aam-at/tensorflow,gunan/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,yongtang/tensorflow,annarev/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,sarvex/tensorflow,annarev/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,karllessard/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,renyi533/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,yongtang/tensorflow,xzturn/tensorflow,gunan/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,Intel-Corporation/tensorflow,aldian/tensorflow,sarvex/tensorflow,aam-at/tensorflow,annarev/tensorflow,petewarden/tensorflow,aam-at/tensorflow,renyi533/tensorflow,aldian/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,gunan/tensorflow,xzturn/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,tensorflow/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,annarev/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,petewarden/tensorflow,renyi533/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aldian/tensorflow,aldian/tensorflow,paolodedios/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,tensorflow/tensorflow,annarev/tensorflow,yongtang/tensorflow,aam-at/tensorflow,aldian/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,gunan/tensorflow,renyi533/tensorflow,gunan/tensorflow,aldian/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,gunan/tensorflow