EDOC-1516: make inmemory cache for connector optional and switched off by default