More restrictive use of 64bit integers in grid creation for load balancing