Improving performance in golang