EFPC: Towards Efficient and Flexible Prompt Compression