Accelerated Machine Learning for On-Device Hardware-Assisted Cybersecurity in Edge Platforms