In EOS smart contract developers are able to utilize the database functionalities. According to official document they are RAM. So I wonder if this is distributed database which included in Blockchain or it's a temporary memory in every BP's RAM.
If it's temporary memory in every BP's RAM then how could it be shared among BP's (the 21 active BPs and subsidiary BPs)?
The second question is: when a subsidiary BP becomes active BP then how can it synchronize this RAM?