lazy make an index (first time only)