You'll get faster with experience and memorize the API a lot more.
My days of searching the web for fragments of code are a lot shorter now that I've learnt to code better.
Oh, you may also want to try using functional programming concepts and lamda to cut down your code :)