Cocoa beans are not as temperature sensitive as chocolate. However, they still need to be kept in proper conditions to ensure they remain at their best. Store unroasted cocoa beans in a cool and dry place, like the base shelf of a pantry or similar. Keep the beans away from any strong odors and away from roasted beans and other foods, as they can harbor bacteria before being roasted. Roasted cocoa beans need to be kept in an airtight container, again in a cool and dry place.