Analyzing and improving cache memory instruction