[SPARK-3599]Avoid loaing properties file frequently

https://issues.apache.org/jira/browse/SPARK-3599