cache messages (for offline processing)