Extract onig cache class