Create faster key cache for main game loop (client)

Some example comparison times are here: http://pastebin.com/ZgrKX33G