Update asyncFileToBuffer to callback with errors, update lookup() to be purely synchronous