improving search: faster joins and filters