Log less.
Make sampling more reliable by using a background process and a wake lock.
Store samples as HashMaps to avoid incompatibility between protocol versions.