Release GIL for time-intensive operations