Add config variable to limit heap usage in EhCacheKeyValueStore