Optimize private endpoint creation

Batch calls to lsof when validating private endpoints to reduce
execution time.
Merge pull request #2077 from ironcladlou/dev/profiling

Optimize private endpoint creation