KMF optimization