Machine learning could help companies react faster to ransomware