refresh: tiny optimizations