improve performance of jenkinsapi calls