Some perf improvements for pGetTransferChunk, test improvements.