Const version of table lookup method.