JCR-3450 Reduce memory usage of SharedFieldCache.ValueIndex - backport to 2.4

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/branches/2.4@1445602 13f79535-47bb-0310-9956-ffa450edef68