An efficient method for calculating the electronic structure of systems tha
t need a very fine sampling of the Brillouin zone is presented. The method
is based on the variational optimization of a single (i.e., common to all p
oints in the Brillouin zone) basis set for the expansion of the electronic
orbitals. Considerations from k.p-approximation theory help to understand t
he efficiency of the method. The accuracy and the convergence properties of
the method as a function of the optimal basis set size are analyzed for a
test calculation on a 16-atom Na supercell.