API to use IO faster from Erlang using NIFs