Make things more efficient

Signed-off-by: Colin Patrick McCabe <cmccabe@cloudera.com>