Lazy indexing for variables loaded from disk