For offloading data to secondary storage, a criteria module checks a migration criteria of a data segment stored in a first data repository. The data segment may be associated with one or more entities. A threshold module determines whether the migration criteria of the data segment satisfies a migration threshold. A migration module migrates the data segment to a second data repository in response to the migration criteria of the data segment satisfying the migration threshold.