Performance optimization by replacing tuple with a dedicated strut