KMP best practices