performance improvement to attribute indexer