Cache database values.