[KARAF-3125] Add a possibility to cache LDAP credentials