Looking at this it seems we were also leaking file descriptors before (since the `FileInputStream` was not properly closed).
So the new implementation is an improvement in several aspects...