Securing Cloud Computations with Oblivious Primitives from Intel SGX