Implement 'early_flush' feature in Local backend.
Refactor request logging (minor).