Switch potentially blocking ops to use threads