1) Fix bug with loading old indexes that might have mixed case column names
1) Add caching for SegmentMetadataQuery