plugins: refactor datastore initialization so it's created only once on plugin load

Signed-off-by: Zvonimir Fras <zvonimir.fras@sartura.hr>