--- og_content_type_admin.module.orig   2011-05-13 11:06:44.000000000 +0200
+++ og_content_type_admin.module        2011-05-13 11:10:51.000000000 +0200
@@ -799,9 +799,12 @@
    }  
  }
  else { // do normal processing plus 'allowed' check
-    $sql = "SELECT octa.types_allowed FROM {og_content_type_admin} octa WHERE octa.gid = -1";  
-    $types = db_fetch_object(db_query($sql));
-    $allowed_types = unserialize($types->types_allowed);     
+    static $allowed_types;
+    if (!isset($allowed_types)) {
+      $sql = "SELECT octa.types_allowed FROM {og_content_type_admin} octa WHERE octa.gid = -1";  
+      $types = db_fetch_object(db_query($sql));
+      $allowed_types = unserialize($types->types_allowed);
+    }
    if ($allowed_types[$type] && call_user_func_array($original_callback, $args)) {  
      return TRUE;
    } 
