Implement temporary table creation for batch insert functionality