A mitochondrial prolyl aminopeptidase PAP2 releases N-terminal proline and regulates proline homeostasis during stress response.