Making queries a little faster