text: Title: Add cache for list_libraries
  Body: #### Description of problem and/or code sample that reproduces the issue
  
  List libraries is O(n) for number of libraries, so is slow for large numbers of databases and libraries, and over high latency links.  Provide a cache of the libraries in a top-level database to speed up initial connections.