using static result buffer for multi-threaded database lookups