fixes #26 made lock recovery more efficient by caching and batching

yeah, it probably should