Reduce number of allocs in lookup calls