issue #7155 - fre is slow. first pass at using temp table to (1) reduce the amount...