perf fixes calling System.getProperty in a tight loop bad.