Welcome, Jack. Thanks for the optimization patch and the analysis. I had another random thought -- could Python or something about the Python<->C interface or something about your use of SSE2 be mis- aligning the stack? Regards, Zooko