use optimized thread unsafe get3, key3 and value3 functions from camltc