Use _ids in values for inverted index
Improved ability to use local/session storage for refs