(breakOut) magic is supposedly faster here:

import scala.collection.breakOut
flatMap { k => ... }(breakOut)

http://stackoverflow.com/questions/1715681/scala-2-8-breakout