Added performance logging for initial SQL creation