More efficient keying of migration table