[SPARK-4612Reduce task latency by making configuration initialization lazy