data was stored to cache only in debug mode