Make the portable profile lookup thread safe