An efficient solution of the perspective problem via a suitable delay Riccati equation