Database cache layer improved