How are Coffee beans preserved?

Coffee beans are preserved when the beans are subjected to heat during the roasting process.