Error caching for performance.