Optimise k-nucleotide.