Just wrote down some optimization ideas.