1000-1500 ? then store them in memory, maybe shared.
Modifications: you can create helper script that will merge all adds and refresh cache (or cache source) (put them together to all ads file, modify shared memory, ...)
usefull cpan modules: Cache, Cache::Memory, Cache::Memcached, IPC::Shareable