Storable was what I was thinking of too when I read the question. I use it for most configuration style things now, with auto-update if the configuration file changes. In some cases it has only a marginal benefit, but for 8000+ regexes it might be worth doing.