Add cache to accounting and preacct