Optimization for sandbox