Indexes were instantiated even when they weren't used.