Ultrafast laser-powered 'magnetic RAM' is on the horizon after new discovery