Performing matrix multiplications at the speed of light for enhanced cybersecurity