Implement Cache in Data layer.