acl-plugin: move the acl epoch calculation into inline function