The court observation came in dealing with a PIL on undertrials languishing in courts.
Division bench of Justices Ranjana Desai and VK Tahilramani observed in the order that "...policemen are deputed for VIP security which results in inadequate staff being available for escorting the prisoners to the court."
"Such situation should be avoided. Production of prisoners (before courts) is a prime obligation," the court said.
The court also pointed out that Gandhi's PIL was about large number of prisoners who are languishing in prisons as their trials are pending.
Earlier, High Court had passed various orders in this PIL, but today, disposing it of, court observed that under "national mission for judicial delivery and reforms," steps are being taken to dispose of cases speedily.