Some Go related optimalizations