Remove some duplication in NoCache helper.