Combine db and static caches in oa_core_util