A Fully Homomorphic Encryption Scheme for Real-Time Safe Control