NIF based erlang shared term storage