Dimension Reduction for Efficient Dense Retrieval via Conditional Autoencoder