I was doing so at query time (probably smaller but slower solution)