Optimizing Earthquake Nowcasting with Machine Learning: The Role of Strain Hardening in the Earthquake Cycle