wp_insert_post memory consumption

Did some profiling, it was the 5k+ queries being stored in the $wpdb->queries array.