safe set NSCache