Calculate archive data before doing anything else

Index generation needs that data.