Fix for creating note_cache file