Leveraging Global Parameters for Flow-based Neural Posterior Estimation