Optimize bottleneck test