If a required value is in the cache, it is not necessary to set it explicitly.
Fixes: #16988 (closed)