Efficiency fix - no tmp table on disk