Avoid computing db_size_in_bytes twice