Some multilanguage optimization

Commits' comments speaks for themselves. :)