initalize the lookup only once throughout the querying