Improve PAM performance