Only dlopen library/build security token/write temp config file once