Local enhancement of the mean-field approximation for bosons