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

https://jira.exoplatform.org/browse/JCR-2352