callback pattern for key lookup

converted to callback pattern for key lookup in the event that consumer implementations incur IO or other costs