(#21211) Fix format string
(#21211) Raise a error on failed reading of cache

Instead of just debug logging this raise a error unless a default value
is supplied.