Racket: slightly better handling of the signatures cache