Green’s Dictionary of Slang

palace n.

1. (N.Z. prison) a cell.

[NZ]D. Looser Boobslang [U. Canterbury D.Phil. thesis] 133/2: palace n. a cell.

2. (UK gay) a public lavatory.

Ware Passing Eng. 94/2: cottages (Fast youths’). Vespasians; retiring points for half a minute [...] Passing away in favour of underground palaces dedicated to Cloacina—palaces generally termed ‘Fountains Temples’ or ‘Palaces’.
[US]B. Rodgers Queens’ Vernacular.

In compounds