cache database access to reduce memory footprint?