Balancing Performance and Efficiency: An Autoencoder Approach to API-Based Malware Detection