-1 for having OPTIMIZE or VACUUM in core. Writing a module to do this is fairly easy. It can even be added to the dba module as an optional setting (how often to run optimize/vacuum and autodetect the database type to run the correct one).