Add cache on notes and categories