FreeSWITCH has an option to cache directory lookups:mod_xml_curl
FreeSWITCHhasanoptiontocachedirectorylookupssothatxml_curldoesn'tneedtolookupthesameuseragain,usingthecacheableattributeinthereturnedxml(seehttp://wiki.freeswitch.org/wiki/Xml_curl#Caching_objects