Reduce lookup overhead.

Signed-off-by: Sebastián J. Seba <ssebastianj@gmail.com>