thesis: Add functions for eviction/indexing