I believe you should be able to use "getAllDefinitionSummaries(false)" rather than "getAllDefinitions(false)", as all you need is the uuid an the name, and it is much faster performing since it does not need to deserialize the full definition from xml.