Efficient and secure deep learning systems for resource-constrained environments