Unopened bags of coconut are shelf stable. Unless you use coconut regularly in your cooking and baking, I recommend storing open bags of shredded coconut and coconut flakes in the freezer. That way you have coconut ready to go for a chocolate chip banana bread or as a toasted topping for a smoothie bowl or a garnish for a curry.