If you don't want to sacrifice browsing speed you need to take your web-filtering out of your system. I would suggest using a free doh service like nextdns as your external filter ( ads filter + security ) which will not cause any slow downs as the entire filtering is done on their servers. If you have a raspberry Pi you can use it to configure pi-hole /Adguard home as a dns cache and filtering tool. If you need a much more advanced packet filtering capabilities you can consider buying
netgate sg 1100 with pfsense built-in and you can configure pfblocker and 'suricata( or Snort) with basic filtering rules' in pfsense. ( Advanced rules in suricata is subscription based which is costly and is only suggested for business environment ). I would suggest the nextdns way and be done with it. It's free and effective.