Speed up raw queries.