Updated cache dependency implementation