add option to avoid caching of empty values