Move table reflection outside insert loop