fixes sonar issue: Performance - Should be a static inner class
Updated audit hook to use pre data, which simply changes the audit json generated