Cache database objects.