Maximized efficiency in code