Fixed multi-library cache issues. Now connects-only-if-not-connected.