King safety tuning with values obtained by SPSA.