sanitization, processMessage, and cache