Dict comprehensions, avoid allocating lists