Modified MKM to check for secret file before creating one