make cache robust