Converted a call from imperative to functional and added statement caching.