To not stray from a previous topic on cruise ships with the issue of traveling with coffee.
My experience with packing coffee?
Every time my sister visits from Dallas, Texas she brings a carry-on with her stuff and an empty suitcase to go on board and take it back filled with coffee beans. If you do this frequently, I would think you will be in the system and you will not be stopped for this as is her case.
From her own experience with forgetting some food to be found by a beagle at the airport, she shared that what you bring that is noted goes on your record, as she found out when the migration person noted that she was a food lady, because she forgot on two occasions.
So, on the positive side, if you regularly take back coffee, you should not be stopped.
My sister saves it in her freezer and gradually uses it. We once went together to Colombia and she did the same with Colombian coffee, but she says Dominican gourmet brand coffee is better.