Increase the performance in path formatting