improved service and pass cache efficiency

- Fixed #45 test foreground cache service efficiency (reduced
notification frequency)
- Fixed #64 passphrase showing too frequently (improved accuracy of
timer)