Before you do that, check whether you'd be violating the ToS by caching tiles. I'm guessing, yes.
Did Google check if their scraping for AI training violated anyone's ToS?
Did Google check if their scraping for AI training violated anyone's ToS?