speed up phrase table lookup by loading everything into memory