optimize for cake initialization