Exactly, id like to dwell on on the last thing you mentioned.. With 40 fish in the tank aggression will be low and could put me in good stead for when i cut them down to 10.
Usually with peacocks you dont want to do the "overstock" thing. They're different and don't cope like mbuna with a higher stock #. 40 is way to many with most of them growing at or over 5" in a 4' tank. Your filtration should be able to keep the bio load down but to me that's out of the question as aggression would be the primary problem here. Even at a stocking # of 25 would be pushing it imo.
That's my 2 cents