native function implementation can open InputStream by calling Blob.openInputStream() and never close it. This way operating system resources won't be released. This should be workarounded by making sure that container in which function runs will close all streams left unclosed after function executes.