Do not query for keys twice