Flash optimization tips