The cakes were of an especial kind and were called "deadcakes." In the case of a funeral in the family of the rich, or of those high-up in the official life of the Colony, large sums were spent on the wine and it was not unusual for a supply of it to be put in the cellar long before the first death so that it would be on hand and improving by age.
Source: wiktionary
...and of the festivities following Dutch Reformed Church funerals, during which the men who had been invited met after the interment and heartily (some said riotously) toasted the departed with choice wine and "deadcakes" prepared especially for the occasion.
Source: wiktionary
In addition, they delivered a bottle of wine, a pair of gloves, and two “deadcakes” that were actually large cookies not to be eaten, but kept as a memento of the deceased.
Source: wiktionary