Secure and Efficient AI Hardware Implementation