Module indexing optimizations.