class library: use closed function in proxy source conversion for efficiency