I've written unit tests and added the lexical-binding header to password-cache.el. Please let me know if you have any comments. Thanks, Stefan Kangas