Speed up engine main() loop

increases upload speed from 3K/s to 150K/s