optimize thermometer queries