Used contor mapping and running awesomely for 1 billion characters.