Various bug fixes and optimizations for blacklist server