Optimized performance setting matrix values