No, just on the outside. The time that your internet provider gathers and keeps this data is determined by data retention laws but is typically 6 months to 1 year. Preventing them from viewing your search history is the greatest method to safeguard your data. Use methods for data encryption such as Tor, VPNs, or HTTPS proxies.