A very smart person you never heard of (Dr. F. W. Lanchester) provided an answer over 100 years ago.
Where:
HP = maximum power
B = bore diameter
S = stroke length
N = number of cylinders
C = a constant for fuel quality, materials, construction standards
HP = B^1.65 × S^.5 × N × C
Note that bore to stroke ratio, number and position of cams, valve train design, valve size and number, rod to stroke ratio do not appear.
100 years ago no one understood their respective influence on the internal combustion engine.
limiting yourself to 7k rpms makes it a crap shoot between square, over square and under square Bore Vs Stroke.