diff --git a/migrate_d2d_ui/migrate_d2d_ui.migrate.inc b/migrate_d2d_ui/migrate_d2d_ui.migrate.inc
index 4cd3b70..1356112 100644
--- a/migrate_d2d_ui/migrate_d2d_ui.migrate.inc
+++ b/migrate_d2d_ui/migrate_d2d_ui.migrate.inc
@@ -651,11 +651,7 @@ class MigrateD2DWizard extends MigrateUIWizard {
    * Form for mapping source content (node) types to destination types.
    */
   protected function contentTypeForm(&$form_state) {
-    $type_count = $this->connection()->select('node_type', 't')
-                    ->fields('t', array('type', 'name'))
-                    ->countQuery()
-                    ->execute()
-                    ->fetchField();
+    $type_count = count($this->node_type_get_types());
     if (!$type_count) {
       $form['description'] = array(
         '#prefix' => '<div>',
@@ -691,10 +687,7 @@ class MigrateD2DWizard extends MigrateUIWizard {
     }
     asort($node_options);
 
-    $result = $this->connection()->select('node_type', 't')
-              ->fields('t', array('type', 'name'))
-              ->orderBy('name')
-              ->execute();
+    $result = $this->node_type_get_types();
     foreach ($result as $row) {
       // @todo: Skip any node type used by content_profile
       $options = $base_options + $node_options;
@@ -955,12 +948,9 @@ class MigrateD2DWizard extends MigrateUIWizard {
       $comment_table = '';
     }
 
+    $types = $this->node_type_get_types();
     foreach ($this->typeMappings as $source_type => $destination_type) {
-      $source_name = $this->connection()->select('node_type', 'nt')
-                           ->fields('nt', array('name'))
-                           ->condition('type', $source_type)
-                           ->execute()
-                           ->fetchField();
+      $source_name = $types[$source_type]->name;
       $count = format_plural($this->nodeCounts[$source_type], '1 node', '@count nodes');
       if ($destination_type == '-1') {
         $non_imports .= t('<li>The %type content type will not be imported.</li>',
diff --git a/node.inc b/node.inc
index f96f896..b5494e9 100644
--- a/node.inc
+++ b/node.inc
@@ -194,4 +194,26 @@ abstract class DrupalNodeMigration extends DrupalMigration {
       return FALSE;
     }
   }
+
+  /**
+   * Identify the list of source content types.
+   *
+   * @return array
+   */
+  public function node_type_get_types() {
+    static $types;
+
+    if (!isset($types) {
+      $result = $this->connection()
+        ->select('node_type', 't')
+        ->fields('t', array('type', 'name'))
+        ->orderBy('name')
+        ->execute();
+      foreach ($result as $record) {
+        $types[] = $record;
+      }
+    }
+
+    return $types;
+  }
 }
