Move cache clear validation into its own validate callback.
Further simplify cache-get a little.