Try single threaded encoding for safety