optimize pread to use typed array set()