Fix audit creation and memcache-related issues