What should you do when the call is always or sometimes local? In these situations, you can optimize your code by passing the TABLE-HANDLE parameter by reference or binding. Both of these options are described in Use a temp-table as a parameter.

Note: When you pass temp-tables by reference or by binding, all of the possible inter-operability between static and dynamic temp-tables applies, as described in Possible combinations of temp-table parameter definitions.