refactor cache params