[Acc] [PATCH 2/4] cipher: cleanup repeated function invoking