Cache number of CSP violations to avoid hitting the database.