Efficient Pointwise and Blockwise Encrypted Operations