Better array based join performance