How to optimize cluster performance with profiles