You load b.storage[i] multiple times. Can you modify the solve methods to load from b.storage only once for each index?