common/buffer: slightly more useful crc caching with test

Signed-off-by: Samuel Just <sam.just@inktank.com>