Avoid writing cache when the value is empty.

Create the cache when the value is empty, does not make it useless? Except that it is more processors?