Fix trait note in search and comment about optimizing