Caching errors to avoid flooding Sentry