Make quote key unique in routine that pre generates quotes for count

Quotes are regenerated later for real