Don't return the temporary filename string before the entity has been flushed