switched back to Files.readAll() for the offset calculation.