This commit re-introduces a feature that we lost during the migration to status-go. Messages are cached for a couple of days if processed correctly by status-go, to avoid performance issues.