Replace expensive loop of __formattedValues cache with index access

Change-Id: I7f264084462fe7c5f026bdb0a75d7cce42fe3818
Merge "Replace expensive loop of __formattedValues cache with index access"