Speeding up the way case-insensitive multiple word queiries are handled to cache the integer IDs rather than do an IN query on the fly