JCR-2352: The method SharedFieldCache.getValueIndex needs to be optimized