True. It is simple, and a small amount of code. It's non optimal for other reasons too (like holding a lock while doing network I/O), but it should work fine for now.