audit: initial check-in for Audit API optimizations

This is still work in progress - checking-it in for an early code
review and performance benchmarks.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>