Avoid creating temporary file