Implement #1735 "Ability to pass custom parameters to persistence layers"