Fix recently introduced OMP flaws in keyring format. This lifts the limit of
number of threads and reduces needed memory per thread by a factor of 128.