optimize language queries

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>