Try to improve file transfer speed

May help with #376 since we're not recursing through processEvents anymore