squid cache tuning and dnsmasq fixes