Quantum feature encoding optimization