Also do not load all the data at every migration, but only once for all migrations. This should close #573.