A composition includes a hydrogel bead in an external matrix, the hydrogel bead having an at least partially crosslinked gelling polymer, the hydrogel bead having encapsulated therein a functional agent, and a buffering agent having low water solubility, wherein at least a portion of the buffering agent is in solid form in the hydrogel bead.