Some performance tweaks
memoize opts.callback
Merge pull request #59 from oleksiyk/perf

Some performance tweaks