Configurable write delay and non-blocking cache serialization

Small update to #64. Now with a configurable delay and true non-blocking behavior…